home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / octa209s.zip / octave-2.09 / libcruft / makerules.os2 < prev    next >
Text File  |  1997-08-14  |  765b  |  36 lines

  1. # Common rules for octave's libcruft directories.
  2. # Modified by Klaus Gebhardt, 1994 - 1995
  3.  
  4. CFLAGS := -mprobe $(CFLAGS)
  5. FFLAGS := -mprobe $(FFLAGS)
  6.  
  7. SOURCES = *.f
  8.  
  9. CRUFT_FSRC = $(wildcard *.f)
  10. CRUFT_BASE = $(notdir $(CRUFT_FSRC))
  11. CRUFT_CSRC = $(patsubst %.f, %.c, $(CRUFT_BASE))
  12. CRUFT_OBJ = $(patsubst %.f, %.o, $(CRUFT_BASE))
  13. CRUFT_OMF = $(patsubst %.f, %.obj, $(CRUFT_BASE))
  14.  
  15. DEP = $(CRUFT_OMF)
  16.  
  17. ifeq ($(DLLNAME),misc)
  18. CRUFT_COBJ = dostop.obj lo-error.obj f77-fcn.obj
  19. DLLDEP = $(patsubst d1mach.obj, , $(DEP)) d1mach.obj $(CRUFT_COBJ)
  20. else
  21. DLLDEP = $(DEP)
  22. endif
  23.  
  24. all: $(CRUFT_OBJ)
  25.  
  26. omf: $(DLLDEP)
  27.  
  28. lib: ../$(DLLNAME).lib
  29.  
  30. ../$(DLLNAME).lib: $(DLLDEP)
  31.     rm -f $@
  32.     emxomfar r $@ $(DLLDEP)
  33.  
  34. clean:
  35.     rm -f *.a *.lib *.o *.obj *.exe
  36.